let mockdata = require("../../../data/postdata.js")

Page({
    data:{

    },
    onLoad:function(options){
        let postId = options.id
        let itemData = mockdata.postList[postId];
        this.setData({ itemData: itemData})
        wx.showToast({
            title: '成功',
            icon: 'success',
            duration: 2000
        })
    }
})